/**
 * TAFREX is Copyright (c) 2012 - Claritize.com, based on project TARTAR
 * @author Radek Strnad - radek.strnad@claritize.com
 * TARTAR is Copyright (c) 2004-2005 - University of Karlsruhe (UKA) & Jozef Stefan Institute (JSI).
 * @author: Aleksander Pivk
 * 
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation and/or
 * other materials provided with the distribution.
 * 
 * THIS SOFTWARE IS PROVIDED BY UKA & JSI "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL UKA or JSI NOR ITS EMPLOYEES BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
package com.claritize.tafrex.bean;

/**
 * Bean representing two dimensional range in a matrix.
 */
public class MatrixStartEndIndex {

    /** Row start index. */
    private int rowStart = 0;

    /** Row end index. */
    private int rowEnd = 0;

    /** Column start index. */
    private int colStart = 0;

    /** Column end index. */
    private int colEnd = 0;

    /** Default constructor with zero indexes. */
    public MatrixStartEndIndex () { }

    /**
     * Constructor with parameters.
     * @param rowStart Row start index
     * @param rowEnd Row end index
     * @param colStart Column start index
     * @param colEnd Column end index
     */
    public MatrixStartEndIndex (int rowStart, int rowEnd, int colStart, int colEnd) {

	this.rowStart = rowStart;
	this.rowEnd = rowEnd;
	this.colStart = colStart;
	this.colEnd = colEnd;

    }

    /**
     * @return the rowStart
     */
    public int getRowStart() {
	return rowStart;
    }

    /**
     * @param rowStart the rowStart to set
     */
    public void setRowStart(int rowStart) {
	this.rowStart = rowStart;
    }

    /**
     * @return the rowEnd
     */
    public int getRowEnd() {
	return rowEnd;
    }

    /**
     * @param rowEnd the rowEnd to set
     */
    public void setRowEnd(int rowEnd) {
	this.rowEnd = rowEnd;
    }

    /**
     * @return the colStart
     */
    public int getColStart() {
	return colStart;
    }

    /**
     * @param colStart the colStart to set
     */
    public void setColStart(int colStart) {
	this.colStart = colStart;
    }

    /**
     * @return the colEnd
     */
    public int getColEnd() {
	return colEnd;
    }

    /**
     * @param colEnd the colEnd to set
     */
    public void setColEnd(int colEnd) {
	this.colEnd = colEnd;
    }

    @Override
    public MatrixStartEndIndex clone() {
	return new MatrixStartEndIndex(getRowStart(), getRowEnd(), getColStart(), getColEnd());
    }
}
